<template>
  <div class="refine_produce">
    <div class="contant">
      <div class="tab-title">
        <ul>
          <li class="active" @click="proRouter"><img src="../../../assets/pro-icon.png">生产线</li>
          <li @click="enRouter"><img src="../../../assets/ensure-icon.png">监管线</li>
          <li @click="supRouter"><img src="../../../assets/supervise-icon.png">保障线</li>
        </ul>
        <i class="el-icon-close stat_close" @click="goBack" style="color: #fff;"></i>
      </div>
      <el-row :gutter="10" style="height:400px">
        <el-col :span="8" class="chart-col">
          <div class="grid-content big-grid">
            <div class="mapEcharts"></div>
            <div class="echart-info">
              <span>烟台海事当日业务统计</span>
              <i>数据来源</i>
            </div>
          </div>
        </el-col>

        <el-col :span="16" class="chart-col">
          <div class="small-grid">
            <el-col :span="12" class="chart-col">
              <div class="grid-content bg-purple">
                <h3 class="title">进出港船舶</h3>
                <el-radio-group v-model="jcgDate" @change="getRptVoyShip">
                  <el-radio :label="0">日</el-radio>
                  <el-radio :label="3">周</el-radio>
                  <el-radio :label="1">月</el-radio>
                  <el-radio :label="2">年</el-radio>
                </el-radio-group>
                <div class="plineEcharts"></div>
              </div>
            </el-col>
            <el-col :span="12" class="chart-col">
              <div class="grid-content bg-purple">
                <h3 class="title">旅客到达发送量趋势</h3>
                <el-radio-group v-model="lklDate" @change="getRptVoyPass">
                  <el-radio :label="0">日</el-radio>
                  <el-radio :label="3">周</el-radio>
                  <el-radio :label="1">月</el-radio>
                  <el-radio :label="2">年</el-radio>
                </el-radio-group>
                <div class="plineEcharts"></div>
              </div>
            </el-col>
          </div>
          <div class="small-grid" style="margin-top:1%;height:49%">
            <el-col :span="12" class="chart-col echart-pre">
              <div class="grid-content bg-purple">
                <h3 class="title">货物运输趋势</h3>
                <el-col :span="24" class="hwyc radio-div">
                  <el-radio-group v-model="hwycDate" @change="getGood">
                    <el-radio :label="0">日</el-radio>
                    <el-radio :label="3">周</el-radio>
                    <el-radio :label="1">月</el-radio>
                    <el-radio :label="2">年</el-radio>
                  </el-radio-group>
                </el-col>
                <div class="plineEcharts hEcharts"></div>
              </div>
            </el-col>
            <el-col :span="12" class="chart-col">
              <div class="grid-content bg-purple">
                <h3 class="title">危险品船舶统计</h3>
                <el-radio-group v-model="wxpDate" @change="getDangerGoods">
                  <el-radio :label="0">日</el-radio>
                  <el-radio :label="3">周</el-radio>
                  <el-radio :label="1">月</el-radio>
                  <el-radio :label="2">年</el-radio>
                </el-radio-group>
                <div class="plineEcharts"></div>
              </div>
            </el-col>
          </div>
        </el-col>
      </el-row>
      <el-row :gutter="10" style="height:300px;margin-top:10px;">
        <!-- <el-col :span="12">
            <div class="grid-content bg-purple">
                <h3 class="title">进出港船舶</h3>
                <label class="lab-width">开始时间</label>
                <el-date-picker v-model="starttime" type="datetime" placeholder="选择日期" format="yyyy-MM-dd HH:mm:ss" value-format="yyyy-MM-dd HH:mm:ss"
                    class="select-width-200" @change="getData">
                </el-date-picker>
                <label class="lab-width">结束时间</label>
                <el-date-picker v-model="endtime" type="datetime" placeholder="选择日期" format="yyyy-MM-dd HH:mm:ss" value-format="yyyy-MM-dd HH:mm:ss"
                    class="select-width-200" @change="getData">
                </el-date-picker>

                <el-col :span="24" class="radio">
                    <el-radio-group v-model="jcgRadio" @change="getData1">
                        <el-radio :label="'管辖海事处'">管辖海事处</el-radio>
                        <el-radio :label="'船舶种类'">船舶种类</el-radio>
                        <el-radio :label="'船舶吨位'">船舶吨级</el-radio>
                    </el-radio-group>
                </el-col>
                <el-col :span="24" class="radio">
                    <h3>船舶数量{{jcgnum}}</h3>
                </el-col>
                <div class="echarts"></div>
            </div>
        </el-col> -->
        <el-col :span="fenshu" class="echart-cont echart-pre">
          <div class="grid-content bg-purple">
            <h3 class="title">船籍港船舶</h3>
            <el-col :span="24" class="radio radio-tit">
              <h3>船籍港船舶数量{{cjgnum}}</h3>
            </el-col>
            <el-col :span="24" class="radio  echart-radio">
              <el-radio-group v-model="cjgRadio" @change="getData4">
                <el-radio :label="'船舶种类'">船舶种类</el-radio>
                <el-radio :label="'船舶吨位'">船舶吨位</el-radio>
              </el-radio-group>
            </el-col>
            <div class="echarts fl"></div>
          </div>
        </el-col>
        <el-col :span="fenshu" class="echart-cont echart-pre">
          <div class="grid-content bg-purple">
            <h3 class="title">泊位</h3>
            <el-col :span="24" class="radio radio-tit">
              <h3>泊位数量{{bwnum}}</h3>
            </el-col>
            <el-col :span="24" class="radio  echart-radio">
              <el-radio-group v-model="bwRadio" @change="getData6">
                <el-radio :label="'管辖海事处'" v-if='orgid!=4'>管辖海事处</el-radio>
                <el-radio :label="'靠泊能力'">靠泊能力</el-radio>
                <el-radio :label="'泊位性质'">泊位性质</el-radio>
              </el-radio-group>
            </el-col>
            <div class="echarts fl"></div>
          </div>
        </el-col>
        <el-col :span="fenshu" class="echart-cont echart-pre">
          <div class="grid-content bg-purple">
            <h3 class="title">辖区公司</h3>
            <el-col :span="24" class="radio radio-tit">
              <h3>辖区公司数量{{xqnum}}</h3>
            </el-col>
            <el-col :span="24" class="radio echart-radio">
              <el-radio-group v-model="xqRadio" @change="getData3">
                <el-radio :label="'管辖海事处'" v-if='orgid!=4'>管辖海事处</el-radio>
                <el-radio :label="'体系内外'">体系内外</el-radio>
              </el-radio-group>
            </el-col>
            <div class="echarts fl"></div>
          </div>
        </el-col>

        <el-col :span="fenshu" class="echart-cont echart-pre" v-if='orgid!=4'>
          <div class="grid-content bg-purple">
            <h3 class="title">船员相关机构</h3>
            <el-col :span="24" class="radio radio-tit">
              <h3>船员相关机构数量{{jgnum}}</h3>
            </el-col>
            <div class="echarts fl"></div>
          </div>
        </el-col>
        <!-- <el-col :span="12">
            <div class="grid-content bg-purple">
                <h3 class="title">客船动态</h3>
                <label class="lab-width">开始时间</label>
                <el-date-picker v-model="kcStarttime" type="date" placeholder="选择日期" format="yyyy 年 MM 月 dd 日" value-format="yyyy-MM-dd"
                    class="select-width-200">
                </el-date-picker>
                <label class="lab-width">结束时间</label>
                <el-date-picker v-model="kcEndtime" type="date" placeholder="选择日期" format="yyyy 年 MM 月 dd 日" value-format="yyyy-MM-dd" class="select-width-200">
                </el-date-picker>

                <el-col :span="24" class="radio">
                    <el-radio-group v-model="chRadio" @change="getData2">
                        <el-radio :label="'总载客'">总载客量</el-radio>
                        <el-radio :label="'总航次'">总航次</el-radio>
                    </el-radio-group>
                </el-col>
                <el-col :span="24" class="radio">
                    <h3>{{chRadio+chnum}}</h3>
                </el-col>
                <div class="echarts"></div>
            </div>
        </el-col> -->
      </el-row>

    </div>

    <el-dialog title="" :fullscreen="true" class="publishDialog seaDialog" :visible.sync="publishDialog" width="100%"
               append-to-body>
        <span>
            <div class="proimg">
                <a href="javascript:;" class="proimga1 proimg-div" title="">1</a>
                <a href="javascript:;" class="proimga2 proimg-div" title="">2</a>
                <a href="javascript:;" class="proimga3 proimg-div" title=''>3</a>
                <a href="javascript:;" class="proimga4 proimg-div" title="">4</a>
                <a href="javascript:;" class="proimga5 proimg-div" title=''>5</a>
                <a href="javascript:;" class="proimga6 proimg-div" title="">6</a>
                <a href="javascript:;" class="proimga7 proimg-div" title=''>7</a>
                <a href="javascript:;" class="proimga8 proimg-div" title=''>8</a>
                <a href="javascript:;" class="proimga9 proimg-div" title=''>9</a>
                <a href="javascript:;" class="proimga10 proimg-div" title="">10</a>
                <a href="javascript:;" class="proimga11 proimg-div" title=''>11</a>
                <a href="javascript:;" class="proimga12 proimg-div" title="">12</a>
                <a href="javascript:;" class="proimga13 proimg-div" title=''>13</a>
            </div>
        </span>
    </el-dialog>
    <el-dialog title="" :fullscreen="true" class="publishDialog seaDialog" :visible.sync="proDialog" width="100%" append-to-body>
      <div class="prodImg"><img src="../../../assets/product-bg.jpg"></div>
    </el-dialog>
  </div>
</template>

<script src="./Produce.js"></script>

<style lang="scss">

  .refine_produce {
    height: 100%;
    width: 100%;
    overflow: auto;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1200;

    .stat_close {
      position: absolute;
      right: 0;
      top: 0;
      line-height: 40px;
      cursor: pointer;
      padding: 0 4px;
    }

    .tab-title {
      height: 40px;
      margin-bottom: 10px;
      position: relative;

      ul {
        display: block;
        height: 40px;
        line-height: 40px;
      }

      li {
        float: left;
        width: 160px;
        font-size: 16px;
        text-align: center;
        background: url("../../../assets/tab-bg.png") no-repeat;
        background-size: 100% 100%;
        margin-right: 30px;
        cursor: pointer;
        color: #fff;

        img {
          width: 25px;
          position: relative;
          top: 5px;
          margin-right: 10px;
        }
      }

      a {
        display: block;
        color: #fff;
      }

      .active {
        background: url("../../../assets/tab-act.png") no-repeat;
        background-size: 100% 100%
      }
    }

    .contant {
      margin: 0px;
      color: white;
      background: url("../../../assets/produce-bg.jpg") no-repeat;
      background-size: 100% 100%;
      background-position: center center;
      height: 100%;
      overflow: auto
    }

    .grid-content {
      border: 1px solid #198ce1;
      border-radius: 2px;
      margin-bottom: 20px;
      background-color: rgba(4, 5, 70, 0.88);
      height: 100%;
    }

    .title {
      padding-left: 15px;
      background: rgba(16, 15, 55, 0.4);
      height: 34px;
      line-height: 34px;
      box-shadow: 0px 0px 10px #00eaff inset;
      border-bottom: 1px solid #eee;

    }

    .echarts {
      // background: #f5f5f5;
      width: 100%;
      height: 65%;

    }

    .hwyc {
      // position: absolute;
      // right:10px;
      // width: 200px;
      // z-index: 9;
    }

    .echart-pre {
      // position: relative;

      .echart-radio {
        // position: absolute;
        margin-top: -10px;
      }

      .radio-tit {
        font-size: 14px;
        margin-bottom: 10px;

        h3 {
          font-size: 14px;
          font-weight: normal
        }
      }
    }

    .radio {
      text-align: center;
      margin-top: 10px;
      color: white;
    }

    .radio .el-radio {
      margin: 0px 2px;
      line-height: 20px;

    }

    .radio .el-radio__label {
      color: white;
      font-size: 14px;
    }

    .select-width-200 {
      width: 160px;
      margin: 10px 0;
    }

    .select-width-200 input {
      padding-right: 10px;
    }

    .lab-width {
      margin-left: 15px;
    }

    .chart-col {
      height: 100%;

    }

    .chart-col:nth-child(2n) {
      padding-right: 3px !important
    }

    .big-grid {
      padding: 10px;
      box-sizing: border-box;
      height: 100%;
      position: relative;

      p {
        font-size: 25px;
        position: absolute;
        width: 100%;
        line-height: 40px;
        top: 0;
        left: 0;
        padding: 10px;
        box-sizing: border-box
      }

      .echart-info {
        position: absolute;
        width: auto;
        right: 0px;
        bottom: 5px;
        padding: 0px 5px;
        box-sizing: border-box;
        text-align: left;

        span {
          width: 100%;
          font-size: 14px;
          display: block;
          line-height: 20px;
        }

        i {
          width: 100%;
          font-size: 12px;
          font-style: normal;
          display: block;
          line-height: 20px;
          color: #90c9e5;
        }
      }

      .mapEcharts {
        height: 100%;
        margin-top: 0;
      }
    }

    .small-grid {
      box-sizing: border-box;
      height: 50%;
      position: relative;

      .el-radio-group {
        padding: 10px;
        box-sizing: border-box;
        text-align: right;
        width: 100%;
        position: relative;
        z-index: 9;
      }

      .el-radio__input.is-checked .el-radio__inner {
        background: #fff70f;
        border-color: #fff70f;
      }

      .el-radio__input.is-checked + .el-radio__label {
        color: #fff70f;
      }

      .el-radio__label {
        color: #fff;
        padding-left: 5px;
      }

      .el-radio__inner {
        border-color: #fff70f;
        background: transparent
      }

      .plineEcharts {
        height: 70%;
        margin: -20px 1% 0;
        width: 98%;
        overflow: hidden;
      }

      .drgEcharts {
        width: 90% !important;
        margin: -7% auto 0 !important;
        height: 75% !important
      }

      .hEcharts {
        height: 75%;
        margin: 0px 1% 0;
        width: 98%;
        overflow: hidden;
        top: -30px;
      }

      .el-radio + .el-radio {
        margin-left: 10px;
      }
    }

    .echart-cont {
      height: 90%;

      .el-radio__input.is-checked .el-radio__inner {
        background: #fff70f;
        border-color: #fff70f;
      }

      .el-radio__input.is-checked + .el-radio__label {
        color: #fff70f;
      }

      .el-radio__label {
        color: #fff;
        padding-left: 5px;
      }

      .el-radio__inner {
        border-color: #fff70f;
        background: transparent
      }

    }

  }

  .publishDialog {


    .proimg {
      width: 100%;
      height: 100%;
      position: fixed;
      overflow: hidden;
      background: url('../../../../src/assets/proSea.jpg') no-repeat;
      background-size: 100% 100%;

      .proimg-div {
        position: fixed;
        border-radius: 50%;
        width: 30px;
        height: 30px;
        border: 2px solid red;
        color: red;
        text-align: center;
        line-height: 30px;
        box-sizing: border-box;
        font-size: 22px;
      }

      .proimga1 {
        bottom: 11%;
        left: 52%;
      }

      a:hover:before {
        position: absolute;
        top: 20px;
        right: 0;
        color: #fff;
        background: rgba(0, 0, 0, 0.7);
        width: 150px;
        padding: 5px;
        font-size: 14px;
        border-radius: 6px;
        line-height: 20px;
        text-align: left;
      }

      a.proimga1:hover:before {
        content: '南长山尾至蓬莱八仙渡海口海底管线多，船舶抛锚易造成管线破损。';
      }

      a.proimga2:hover:before {
        content: '南长山尾浅滩，船舶易搁浅。';
      }

      a.proimga3:hover:before {
        content: '原南长山习惯锚地因挖沙造成地质发生变化，避风锚泊船易发生走锚、翻沉。';
      }

      a.proimga4:hover:before {
        content: '南长山鹊嘴尖浅滩，避风锚泊船舶易走锚搁浅。';
      }

      a.proimga5:hover:before {
        content: '珍珠门航道狭窄，星石礁附近礁石多，航行船舶易触礁。';
      }

      a.proimga6:hover:before {
        content: '钓鱼岛西进口水流急，大风天涌浪大时船舶进入拐向东时易翻沉。';
      }

      a.proimga7:hover:before {
        content: '长山水道东西警戒区作业渔船多，易发生商渔船碰撞。';
      }

      a.proimga8:hover:before {
        content: '长山水道东西警戒区作业渔船多，易发生商渔船碰撞。';
      }

      a.proimga9:hover:before {
        content: '长山水道东西警戒区作业渔船多，易发生商渔船碰撞。';
      }

      a.proimga10:hover:before {
        content: '高山岛礁石多，潮差大，钓鱼船易搁浅。';
      }

      a.proimga11:hover:before {
        content: '砣矶岛老东礁高潮时礁石不明显，航行船舶易触礁搁浅、沉没。';
      }

      a.proimga12:hover:before {
        content: '大钦岛港非法作业船舶多，船舶装卸不遵守操作规程，易翻扣。';
      }

      a.proimga13:hover:before {
        content: '大钦岛港航道作业渔船多，易发生客船和作业船碰撞、大吨位船涌浪打沉作业船事故。';
      }

      .proimga2 {
        bottom: 15.5%;
        left: 51.5%;
      }

      .proimga3 {
        bottom: 17%;
        left: 43%;
      }

      .proimga4 {
        bottom: 19%;
        left: 47%;
      }

      .proimga5 {
        bottom: 25%;
        left: 46%;
      }

      .proimga6 {
        bottom: 29%;
        left: 44.5%;
      }

      .proimga7 {
        bottom: 34%;
        left: 44%;
      }

      .proimga8 {
        bottom: 27%;
        left: 72%;
      }

      .proimga9 {
        bottom: 39%;
        left: 26%;
      }

      .proimga10 {
        bottom: 47%;
        left: 43%;
      }

      .proimga11 {
        bottom: 49%;
        left: 64%;
      }

      .proimga12 {
        bottom: 70%;
        left: 56%;
      }

      .proimga13 {
        bottom: 67%;
        left: 58%;
      }
    }
  }

  .prodImg {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;

    img {
      width: 100%;
      height: 100%;
    }
  }

  @media only screen and(max-width: 1280px) {
    .refine_produce .select-width-200 {
      width: 140px !important;
      margin: 10px 0;
    }
  }

  @media only screen and (max-width: 1919px) {
    .refine_produce {
      .select-width-220 {
        width: 150px !important;
      }
    }
    .radio-div {
      margin-top: 10px;
    }
    .refine_produce .radio {
      margin-top: 0px;
    }
    .hEcharts {
      top: -45px !important;
      height: 78% !important;
    }
  }
  .seaDialog{
    .el-dialog__headerbtn .el-dialog__close {
      color: red;
      font-size: 28px;
      font-weight: 600;
    }
  }
</style>
